package o;

import android.os.Build.VERSION;
import android.view.LayoutInflater;
import android.view.View;
import android.view.WindowManager.LayoutParams;
import android.widget.TextView;
import o.bkw.b;
import o.bkw.d;
import o.ezn.a;

public class ezx extends ezn {
    private static ezx ˏ = null;

    protected ezx() {
    }

    public static synchronized ezn ˎ() {
        ezn o_ezn;
        synchronized (ezx.class) {
            if (ˏ == null) {
                ˏ = new ezx();
            }
            o_ezn = ˏ;
        }
        return o_ezn;
    }

    protected a ˏ(String str, int i) {
        View inflate = LayoutInflater.from(this.ˊ).inflate(b.ˏ, null);
        TextView textView = (TextView) inflate.findViewById(d.ˋ);
        textView.setMaxWidth(this.ˊ.getResources().getDimensionPixelSize(bkw.a.ॱ) - this.ˊ.getResources().getDimensionPixelSize(bkw.a.ˋ));
        textView.setText(str);
        int i2 = 2005;
        if (VERSION.SDK_INT >= 26) {
            i2 = 2038;
        }
        LayoutParams layoutParams = new LayoutParams(-2, -2, i2, 280, -2);
        layoutParams.gravity = 80;
        layoutParams.y = this.ˊ.getResources().getDimensionPixelSize(bkw.a.ˎ);
        a aVar = new a();
        aVar.ˎ(layoutParams);
        aVar.ˊ((long) i);
        aVar.ॱ(inflate);
        return aVar;
    }
}
